<script>
    export default {
		onLaunch: function() {
			console.log('App Launch');
		},
		onShow: function() {
			console.log('App Show');
            let currentUser = this.globalData.imService && this.globalData.imService.currentUser;
            if(!currentUser){
                uni.navigateTo({
                    url : './pages/login/login'
                });
            }
		},
		onHide: function() {
			console.log('App Hide')
		},
        globalData : {
		    imService : null
        }
	}
</script>

<style>
    @import url("./static/style/chatInterface.css");
</style>
